Combined live migration and storage migration using file shares and mirroring

ABSTRACT

Migration of a virtual machine and associated files to a destination host may be performed. A source host may initiate establishment of a temporary network file share at a destination location of the destination host to provide the source host and the destination host with access to the file share. While the virtual machine is running at the source host, a storage migration and a live migration may be initiated. Using the network file share, the source host may copy the associated files to the destination location. A runtime state of the virtual machine may be copied to the destination host. In a final phase of the migration, the virtual machine at the source host may be stopped, the storage migration may be completed, the copying of the runtime state may be completed, and the virtual machine may be started at the destination host.

BACKGROUND

A software implementation of a computing device is called a virtual machine. A virtual machine executes programs like a physical computing device. Virtual peripheral devices of the virtual machine may differ from physical peripheral devices of a physical computing device upon which the virtual machine executes. For example, a virtual machine may have a given number of virtual disks, while the physical computing device upon which the virtual machine executes may have a different number of physical disks, or no physical disks. Similarly, an operating system of a virtual machine may differ from an operating system of the physical computing device on which the virtual machine executes. In addition, a single physical computing device may have a number of virtual machines executing thereon.

A virtualization platform executes on a physical computing device and provides an infrastructure in which virtual machines can execute. The virtualization platform provides virtual devices to the virtual machines, manages resources of the virtual machines and a physical computing device on which the virtual machines execute, and manages application program interfaces (APIs) for the virtual machines, as well as performing other functions.

A process of moving a virtual machine from a first physical computing device, which currently executes the virtual machine (a source host), to a second physical computing device (a destination host) is called live migration. In this specification, the term “live migration” refers to a moving of an executing, or running, virtual machine from a source host to a destination host. One common implementation of live migration includes establishing a network connection between a first virtualization platform of the source host and a second virtualization platform of the destination host. A runtime state (including, but not limited to, a memory of a virtual machine, a state of virtual processors of the virtual machine and a state of virtual devices of the virtual machine) of the virtual machine executing within the first virtualization platform may be transferred to the second virtualization platform via the established network connection. In some implementations, the network connection may be a transmission control protocol (TCP) connection. However, other types of network connections are also possible.

A live migration moves the virtual machine from the first physical computing device to the second physical computing device. However, it is commonly understood that files used by the virtual machine are not moved during the live migration. As a result, the files used by the virtual machine, which may include, but not be limited to, virtual hard disk (VHD) files, are stored in some form of shared storage such that the first virtualization platform at the first physical computing device and the second virtualization platform at the second physical computing device both have access to the files used by the virtual machine. The shared storage may include, but not be limited to, a storage area network (SAN), a file share including, but not limited to, a server message block (SMB) or a network file system (NFS), or another form of shared storage accessible to the first physical computing device and the second physical computing device.

Typically, a live migration is performed in two phases, a “brownout phase” and a “blackout phase”. During the brownout phase, the first virtualization platform on the first physical computing device, or the source host, sets up a copy of the virtual machine on the second physical computing device, or the destination host while the virtual machine executes on the first physical computing device. In order to minimize a duration of the blackout phase, during the brownout phase, the live migration usually tracks changes to the runtime state of the executing virtual machine and potentially transfers, from the first virtualization platform to the second virtualization platform, a portion of the runtime state that changed in order to reduce a size of any remaining runtime state changes to be performed before leaving the blackout phase.

During the “blackout phase”, the virtual machine executing on the first virtualization platform is stopped (or paused), ownership of the virtual machine is transferred to the second virtualization platform, and the virtual machine is restored and started (or resumed) on the second virtualization platform. Only a small remaining portion of the runtime state is transferred to the second virtualization platform during the blackout phase.

A storage migration is a process in which files used by a virtual machine in a virtualization platform are moved from a current storage location (a source location) to another storage location (a destination location). The files may include, but not be limited to, VHD files and configuration files which store settings of a virtual machine. One common implementation of storage migration for a running virtual machine includes a “mirroring” phase, during which all disk write operations performed by the virtual machine are performed with respect to virtual disk files at the source location and at the destination location. After a complete copy of the virtual disk files from the source location is created at the destination location, the virtual machine is switched over to use only the virtual disk files at the destination location and the virtual disk files in the source location may be deleted. Storage migration does not move the virtual machine. Only the storage location of the files used by the virtual machine is changed. Therefore, one limitation of source migration is that the source location and the destination location are both accessible from the virtual machine.

SUMMARY

This Summary is provided to introduce a selection of concepts in a simplified form that is further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

In embodiments consistent with the subject matter of this disclosure, a virtualization platform at a source host (source virtualization platform) may receive a request to perform a virtual machine migration of a virtual machine running at the source host to a destination host. The source host and the destination host may not have access to a commonly shared storage system. Responsive to the request, the source virtualization platform may initiate creation of a temporary network file share at one or more destination locations at the destination host, such that the network file share is accessible by the source host and the destination host. The source virtualization platform may then perform a storage migration of files, used by the virtual machine at the source host, to the one or more destination locations at the destination host via a network and the created network file share.

After successfully creating files, at the one or more destination locations, corresponding to the files used by the virtual machine, the virtual machine may enter a mirror state, such that disk operations to files used by the virtual machine at the source host are also performed with respect to corresponding files created at the destination host.

The source virtualization platform may begin a live migration of the virtual machine at the source host to the destination host, such that at least a portion of a runtime state of the virtual machine at the source host is copied to a memory at the destination host. During a final phase of the live migration and the storage migration, the virtual machine at the source host may be stopped (or paused), the mirror state may be canceled, thereby stopping a mirroring operation, a remaining portion of the runtime state may be copied to the memory of the destination host, and the migrated virtual machine at the destination host may be started (or resumed) on a destination virtualization platform of the destination host.

In some embodiments, in order to perform the live migration, the source host may establish a network connection with the destination host and may provide a runtime state of the virtual machine, at the source host, to the destination host via the network connection. In some implementations, the network connection may be a transmission control protocol (TCP) connection. In other implementations, other types of network connections may be employed. The destination host may receive the runtime state and may restore the runtime state to a memory of the destination host.

In other embodiments, the runtime state may be provided to the destination host in a different manner. For example, the virtualization platform at the source host may copy the runtime state to one or more files, which we refer to as saved-state files, on the file share.

DRAWINGS

In order to describe the manner in which the above-recited and other advantages and features can be obtained, a more particular description is described below and will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understand that these drawings depict only typical embodiments and are not therefore to be considered to be limiting of its scope. Implementations will be described and explained with additional specificity and detail through the use of the accompanying drawings.

FIG. 1 illustrates an exemplary operating environment in which various embodiments may be implemented.

FIG. 2 is a block diagram of an exemplary computing device which may be used as a source host or a destination host.

FIGS. 3-5 show the source host and the destination host at various stages of a virtual machine migration.

FIGS. 6-10 are flowcharts illustrating exemplary processing in a number of embodiments and variations of embodiments consistent with the subject matter of this disclosure.

DETAILED DESCRIPTION Overview

Existing solutions for performing a live migration and a storage migration do not provide for moving a complete virtual machine from a first physical computing device to a second physical computing device when the first physical computing device and the second physical computing device do not have access to a commonly shared storage system.

Various embodiments consistent with the subject matter of this disclosure leverage an ability of storage migration to move files used by a virtual machine, executing on a first physical computing device (source host), to a temporary network file share, which may be created on a second physical computing device (destination host), and an ability of a live migration to move a runtime state of the virtual machine from the source host to the destination host.

While the virtual machine is executing on the source host, a virtual machine migration may be initiated. A source virtualization platform, executing on the source host, may initiate creation of a temporary network file share at one or more destination storage location at the destination host. The temporary network file share may be accessible by both the source host and the destination host.

A source virtualization platform executing on the source host may perform a storage migration of files used by the virtual machine from source storage locations at the source host to destination storage locations at the destination host by using the temporary network file share. During the storage migration, a mirror state for the virtual disks may be maintained. While in the mirror state, disk write operations by the virtual machine at the source host are written to files of virtual disks at the source storage location and files of virtual disks at the one or more destination storage locations.

The virtualization platform at the source host may perform a live migration of the virtual machine from the source host to the destination host. The live migration transfers a runtime state of the virtual machine from the source host to the destination host. In a final phase of live migration, the virtual machine at the source host is stopped (or paused), ownership of the virtual machine is transferred from the source host to the destination host, the mirror state is canceled (a mirroring operation is stopped), and the virtual machine is resumed (or started) on the destination host and is configured to use the virtual disk files at the one or more destination locations of the destination host.

After the virtual machine migration is completed, the temporary network file share at the destination host may be closed, virtual machine resources at the source host may be released, and the files used by the virtual machine on the source host may be deleted.

Exemplary Operating Environment

FIG. 1 illustrates an exemplary operating environment 100 in which various embodiments consistent with the subject matter of this disclosure may be implemented. Operating environment 100 may include a source host 102, a destination host 104 and a network 106. Source host 102 and destination host 104 may each be a physical computing device upon which a virtual machine may execute on a virtualization platform. Network 106 may include one or more networks of various types, including, but not limited to a private corporate network, a public network, a packet switching network, the Internet, a fiber optic network, a wireless network, or other types of networks.

Exemplary Processing Devices

FIG. 2 is a block diagram of an exemplary computing device 200, which may be used to implement embodiments of source host 102 and/or destination host 104. Computing device 200 may be a server, a personal computer (PC), or another type of computing device. Computing device 200 may include hardware, such as a processor 260, a bus 210, a memory, which may include a combination of random access memory (RAM) 230 and read only memory (ROM) 240, a storage device 270, an input device 220, an output device 250 and a communication interface 280.

Processor 260 may include one or more conventional processors that interpret and execute instructions. RAM 230, ROM 240, and/or another type of dynamic or static storage medium, respectively, may store information and instructions for execution by processor 220. RAM 230, or another type of dynamic storage medium, may store instructions as well as temporary variables or other intermediate information used during execution of instructions by processor 220. ROM 240, or another type of static storage medium, may store static information and instructions for processor 260. Some embodiments of computing device 200 may further include a hardware logic component, including, but not limited to, an application specific integrated circuit (ASIC) (not shown) and/or a field programmable gate array (FPGA) (not shown) that may be combined with instructions in memory 230, 240 to cause computing device 200 to perform a method.

Input device 220 may include a keyboard, a pointing device, or other device for providing input. Output device 250 may include a display, a printer, or other device for outputting information. Communication interface 280 may include a transceiver for sending and receiving information via network 106.

Storage device 270 may include a machine-readable storage medium such as, for example, a magnetic disk, a writable optical disc, a flash RAM device, or other type of machine-readable storage media for storing data, instructions, or other information. Non-limiting examples of storage device 270 may also include Digital Video Disk (DVD), compact Disk (CD), or other types of storage devices using other types of machine-readable storage media for storing data and/or instructions for later use.

Computing device 200 may communicate with other devices via a communication medium, which may include, but not be limited to a propagated signal on a carrier wave and may perform functions in response to processor 260 executing sequences of instructions contained in a machine-readable storage medium. Such instructions may be read into a machine-readable storage medium, including, but not limited to, RAM 230 from another machine-readable storage medium or from a separate device via communication interface (280).

Embodiments

FIGS. 3-5 illustrate various stages of an exemplary process for virtual machine migration. FIG. 3 shows a source host 302 and a destination host 304 capable of communicating with one another through a network or a combination of networks. Source host 302 may include a virtualization platform 306 and a storage device, such as, for example, a disk 308, which, in this example, source host 302 may address as “D:”. Virtualization platform 306 may execute virtual machine 310 having a virtual disk 312, which, in this example, is actually a file called disk.vhd residing on disk 308. Destination host 304 may include a disk 314 and a virtualization platform 316.

A virtual machine migration of virtual machine 310 may be initiated in a number of ways, including, but not limited to a client calling an application program interface (API). When a client calls an API on source host 302 to initiate the virtual machine migration, the client may provide an identifier of a destination host and one or more identifiers of one or more storage locations at destination host 316. The identifier of the destination host may include, but not be limited to, a domain name system (DNS) name or an internet protocol (IP) address.

Upon initiation of the virtual machine migration, source host 302 may send a request 318 for a network file share to destination host 304. In some implementations, destination host 304 may create the network file share and may respond to source host 302 with a location of the network file share 320. In this example, the network file share is created on disk 314, which may be addressed by destination host 304 as “E:” See FIG. 5.

FIG. 4 illustrates a storage migration process in which virtualization platform 306 at source host 302 may copy files used by virtual machine 310 to the one or more destination storage locations at destination host 304. FIG. 4 shows virtualization platform 306 copying a virtual disk file, disk.vhd, from disk 308 to disk 314 at destination host 304, while virtual machine 310 is running on virtualization platform 306. Virtualization platform 306 may enter a mirror state in which all disk write operations by virtual machine 310 to files of virtual machine 310 may be mirrored or performed by virtualization platform 306, with respect to corresponding files at the one or more destination locations, which in this example is disk 314.

Virtualization platform 306 may start performing a live migration process while virtual machine 310 is running on virtualization platform 306 of source host 302. At least some of the live migration process may be performed while the storage migration process is also being performed. For example, the live migration process may be performed while the storage migration process mirrors disk write operations to files used by virtual machine 310. During the live migration process, virtualization platform 306 of source host 302 may copy a runtime state of virtual machine 310 to destination host 304. The running state of virtual machine 310 may include, but not be limited to, a content of a memory of virtual machine 310 and a state of virtual processors and virtual devices of virtual machine 310.

FIG. 5 illustrates source host 302 and destination host 304 after a final phase of virtual machine migration. In the final phase, virtual machine 310 of source host 302 may enter a blackout phase in which virtualization platform 306 stops (or pauses) virtual machine 310. Virtualization platform 306 may then cause virtual machine 310 to cancel the mirror state such that disk write operations by virtual machine 310 are no longer mirrored to corresponding files at destination host 304. By the time the mirroring is stopped, virtual machine 310 is paused and files used by virtual machine 310 and corresponding files at the one or more destination locations are identical. Source host 302 may then inform destination host 304 to close the network file share on disk 314 and start (or resume) virtual machine 310 in virtualization platform 316 of destination host 304, such that virtual machine 310 in virtualization platform 316 starts (or resumes) in a same running state as was virtual machine 310 when last running in virtualization platform 306. Virtual machine 310 in virtualization platform 316 is configured to use virtual machine files migrated from disk 308 to disk 314, in this example. After virtual machine 310 is successfully started (or resumed) in virtualization platform 316, virtualization platform 306 at source host 302 may release virtual machine resources previously used by virtual machine 310 at source host 302. The releasing of virtual machine resources may include deletion of files previously used by virtual machine 310 at source host 302 and stored on disk 308.

FIG. 6 is a flowchart illustrating an exemplary process for performing a virtual machine migration in various embodiments. The process may begin with a virtualization platform on a source host receiving a request to migrate a virtual machine, executing on the source host, to a destination host (act 602). In some embodiments, a client, executing on the source host or different computing device, may call an API to request a virtual machine migration to the destination host. The call may include an identifier of the destination host and an identifier of one or more storage locations at the destination host for storing virtual machine files.

Next, the virtualization platform at the source host may send a request, via one or more networks connecting the source host and the destination host, for creation of a network file share at the one or more storage locations at the destination host (act 604). In some embodiments, the destination host may receive the request, may create a network file share, and may send an indication of a location of the network file share to the virtualization platform at the source host. In other embodiments, the virtualization platform at the source host may establish a network connection with the destination host and may use a custom protocol to request creation of the network file share. In further embodiments, the virtualization platform at the source host may use remote management capabilities of the destination host to create the network file share. The remote management capabilities may include Windows Management Instrumentation (WMI), within the Microsoft® Windows® operating system, or other facility for providing remote management capabilities. The destination host may create the network file share using WinAPI (Windows® API), which is Microsoft Corporation's core set of application programming interfaces (APIs) available in the Microsoft® Windows® operating systems.

Next, the virtualization platform of the source host may start a storage migration process to migrate files, used by the virtual machine executing on the virtualization platform of the source host, to the one or more destination locations while the virtual machine is running at the source host (act 606). During the storage migration process, the virtualization platform may place the virtual machine in a mirror state such that disk write operations to a virtual machine file by the virtual machine are mirrored by the virtualization platform to corresponding files at the one or more destination locations at the destination host.

FIG. 7 is a flowchart illustrating exemplary processing with respect to mirroring disk write operations by the virtualization platform at the source host. The process may begin with the virtual machine, executing within the virtualization platform at the source host, performing a disk write operation to a virtual machine file at the source host (act 702). The virtualization platform may determine whether the disk write operation is to a portion of the virtual machine file that has already been migrated to one of the one or more destination storage locations (act 704).

If the virtualization platform determines that an affected portion of the virtual machine file has not already been migrated, then the process is complete. In other words, the virtual machine may perform the disk write operation to the virtual machine file at the source host and the affected portion of the virtual machine file will eventually be migrated to the one of the one or more destination storage locations as a result of the storage migration.

If, during act 704, the virtualization platform determines that the affected portion of the virtual machine file was migrated to the one of the one or destination storage locations, then the virtualization platform may perform the disk write operation to a corresponding file at the one of the one or more destination storage locations (act 706).

Returning to FIG. 6, the virtualization platform at the source host may begin live migration of the virtual machine at the source host while the virtual machine is running at the source host (act 608).

FIG. 8 is a flowchart illustrating an exemplary process, in an embodiment, for beginning the live migration of the virtual machine at the source host. The process may begin with the virtualization platform, executing at the source host, establishing a network connection to the destination host (act 802). In some implementations of the embodiment, the virtualization platform may establish a transmission control protocol (TCP) connection to the destination host. In particular, in some of the implementations, the virtualization platform may establish the TCP connection to a virtualization platform executing at the destination host. In other embodiments, a different type of network connection may be established.

Next, the virtualization platform at the source host may migrate at least some of the running state of the virtual machine from the source host to the destination host via the network connection (act 804). In some implementations, the virtualization platform at the source host may migrate the running state to the virtualization platform at the destination host, which may restore the running state to a memory of the destination host.

Of course, in other embodiments, implementations may employ other methods for migrating the running state to the destination host. As an example, FIG. 9 illustrates an exemplary process, in a different embodiment, for migrating the running state to the destination host. The process may begin with the virtualization platform at the source host copying at least some of the running state to one or more saved-state files at the one or more destination storage locations (act 902). The destination host, or the virtualization platform executing at the destination host, may then restore contents of the one or more saved-state files to a memory of the destination host (act 904).

Returning to FIG. 6, the virtualization platform at the source host may determine whether an amount of the running state to be copied to the destination host during the live migration is less than a given amount (act 610). If the virtualization platform at the source host determines that the amount is not less than the given amount, then the virtualization platform at the source host may remain performing the live migration and the storage migration. Otherwise, the virtualization platform at the source host may pause (or stop) the virtual machine at the source host, thereby entering a blackout phase (act 612), may stop mirroring by canceling the mirror state (act 614), and may finish live migration of the virtual machine by copying a remaining amount of the running state to the destination host (act 616), which may restore the remaining amount of the running state to the memory of the destination host. The copying of the remaining amount of the running state to the destination host may, in effect, transfer ownership of the virtual machine from the virtualization platform at the source host to the virtualization platform at the destination host. The network file share at the destination host may then be closed (act 618) and the virtual machine in the virtualization platform at the destination host may be started (or resumed) and may be configured to use the virtual machine files migrated to the one or more destination storage locations (act 620). The virtualization platform at the source host may then release resources previously used by the virtual machine at the source host (act 622). The releasing of the resources may include, but not be limited to, deletion of virtual machine files previously used by the virtual machine at the source host and releasing of memory resources previously used by the virtual machine at the source host.

FIG. 10 is a flowchart illustrating an exemplary variation of the process shown in FIG. 6. The flowchart of FIG. 10 shows changes with respect to the flowchart of FIG. 6. That is, acts 602-618 may be performed as previously described with respect to FIG. 6. After performing act 618, the virtual machine at the destination host may be started (or resumed) (act 620). The virtualization platform at the destination host may determine whether the virtual machine started correctly or whether errors occurred (act 1002). If no errors occurred, then the virtualization platform at the source host may be informed that the virtual machine started correctly at the destination host and the virtualization platform at the source host may release resources previously used by the virtual machine at the source host (act 622).

If, during act 1002, the virtualization platform at the destination host determines that the virtual machine at the destination host did not start correctly and one or more errors occurred, then the virtualization platform at the destination host may stop the virtual machine at the destination host and may inform the virtualization platform at the source host that the virtual machine at the destination host did not start correctly (act 1004). The virtualization platform at the source host may then start (or resume) the virtual machine at the source host, which may use the virtual machine files at the source storage location (act 1006). Thus, in this variation of the embodiment of FIG. 6, if the virtual machine at the destination host does not start properly after a virtual machine migration then the virtual machine at the source host may again be started (or resumed), thereby minimizing downtime of the virtual machine.

CONCLUSION

Embodiments consistent with the subject matter of this disclosure perform a virtual machine migration to move a virtual machine and associated files between hosts that may not have access to a common shared storage system. Further, in various embodiments, if the migrated virtual machine at the destination host fails to start (or resume) properly then the virtual machine at the source host may again be started (or resumed) in order to reduce an amount of downtime.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms for implementing the claims. Further, the acts described by FIGS. 6-10 may be performed in a different order in other embodiments.

Accordingly, the appended claims and their legal equivalents define embodiments, rather than any specific examples given. 

We claim as our invention:
 1. A machine-implemented method for migrating a virtual machine, the machine-implemented method comprising: requesting, from a source host executing the virtual machine to a destination host, creation of a file share at the destination host; performing, by the source host, a storage migration of virtual machine files to the file share, all of the storage migration occurring while the virtual machine is executing at the source host; mirroring, by the source host as part of the storage migration, disk write operations by the virtual machine such that the disk write operations are performed on a source virtual machine file of the source host and on a corresponding destination virtual machine file in the file share at the destination host; performing, by the source host, a live migration of the virtual machine to the destination host, the mirroring being performed during at least a portion of the performing of the live migration, during a final stage of the live migration the execution of the virtual machine is stopped, or paused, on the source host, mirroring is canceled, the file share at the destination host is closed and the virtual machine is started on the destination host and is configured to use the migrated virtual machine files at the destination host; and releasing, by the source host, virtual machine resources after a successful completion of the live migration from the source host to the destination host.
 2. The machine-implemented method of claim 1, wherein the performing the live migration further comprises: moving a runtime state of the virtual machine from the source host to the destination host via a network connection between the source host and the destination host.
 3. The machine-implemented method of claim 1, wherein the performing the live migration further comprises: copying a runtime state of the virtual machine executing on the source host to at least one saved-state file in the file share at the destination host, and restoring the at least one saved-state file on the destination host to a memory at the destination host for use by the virtual machine when executing at the destination host.
 4. The machine-implemented method of claim 1, wherein the requesting creation of a file share at the destination host further comprises: using, by a virtualization platform of the source host, remote management capabilities to cause the destination host to create the file share.
 5. The machine-implemented method of claim 4, wherein the destination host creates the file share using WinAPI.
 6. The machine-implemented method of claim 1, further comprising: initiating the migration of the virtual machine by a client through an application program interface provided by a virtualization platform, the client specifying, via the application program interface, the destination host and a storage location for the virtual machine files at the destination host.
 7. The machine-implemented method of claim 1, wherein the performing the live migration further comprises: transferring ownership of the virtual machine from the source host to the destination host during a blackout phase of the live migration in which the virtual machine at the source host is paused and the virtual machine at the destination host is not yet running.
 8. The machine-implemented method of claim 1, wherein if a problem occurs with respect to starting, or resuming, the virtual machine at the destination host, the machine-implemented method further comprises restarting, or resuming, the virtual machine at the source host to use the virtual machine files at the source host.
 9. A machine-readable storage medium having instructions recorded thereon, such that when the instructions are executed by at least one processor, the at least one processor performs a method comprising: migrating virtual machine files from storage at a source computing device to storage at a destination computing device while running a virtual machine on the source computing device, the storage at the destination computing device being temporarily accessible to both the source computing device and the destination computing device during the migrating of the virtual machine files; mirroring, by the source computing device as part of the migrating of the virtual machine files, disk write operations to a source file by the virtual machine executing on the source computing device such that the disk write operations are also performed on a destination file in the storage at the destination computing device; performing, by the source computing device, a live migration of the virtual machine from the source computing device to the destination computing device, the migrating of the virtual machine files and the mirroring of the disk write operations being performed during at least a portion of the live migration of the virtual machine; performing, during a final stage of the live migration: stopping, or pausing, the virtual machine running on the source computing device, stopping the mirroring, completing the live migration, starting, or resuming, the virtual machine on the destination computing device, the virtual machine on the destination computing device using the virtual machine files migrated to the storage at the destination computing device, and releasing virtual machine resources used by the virtual machine on the source computing device.
 10. The machine-readable storage medium of claim 9, wherein the mirroring the disk write operations comprises: performing a disk write operation to the source file in the storage of the source computing device; determining whether the disk write operation is to a portion of the source file that had already been migrated to the destination file in the storage at the destination computing device; and performing, only when the determining determines that the portion of the source file had already been migrated to the destination file in the storage at the destination computing device: performing the disk write operation to the destination file in the storage at the destination computing device.
 11. The machine-readable storage medium of claim 10, wherein when the portion of the source file is determined to not yet be migrated to the destination file, the disk write operation is effectively copied to the destination computing device after the portion of the source file is migrated to the destination file in the storage at the destination computing device.
 12. The machine-readable storage medium of claim 9, wherein the method further comprises: establishing a network connection from the source computing device to the network computing device, wherein during the live migration of the virtual machine, the source computing device uses the network connection to migrate at least a portion of a running state of the virtual machine from the source computing device to the destination computing device.
 13. The machine-readable storage medium of claim 12, wherein the network connection is a transmission control protocol connection.
 14. The machine-readable storage medium of claim 9, wherein the method further comprises: copying at least a portion of a running state of the virtual machine at the source computing device to at least one saved-state file at the temporarily accessible storage at the destination computing device.
 15. A method carried out by a first computing device and a second computing device executing in a networked environment, the method comprising: receiving, by the first computing device, a request to migrate to the second computing device a virtual machine executing on the first computing device; initiating, by the first computing device, creation of a shared storage at the second computing device, the shared storage being accessible by both the first computing device and the second computing device; migrating, by the first computing device, virtual machine files of the virtual machine at the first computing device to the shared storage at the second computing device, most of the migrating of the virtual machine files being performed while the virtual machine at the first processing device is executing; copying at least some of a running state of the virtual machine at the first computing device from a memory of the first computing device to a memory of the second computing device, the copying occurring while the first computing device performs the migrating of the virtual machine files and the virtual machine at the first computing device is executing; mirroring, by the first computing device during the migrating of the virtual machine files, disk write operations to a file of the virtual machine at the first computing device such that the disk write operations are also performed to a file in the shared storage at the second computing device; and performing, when an amount of data, remaining to be copied, of the running state of the virtual machine at the first computing device is less than a given amount: stopping, or pausing, the virtual machine on the first computing device, stopping the mirroring of the disk write operations, copying the remaining data of the running state of the virtual machine at the first computing device to the memory of the second computing device, starting the virtual machine at the second computing device, the virtual machine at the second computing device initially having the running state copied to the memory of the second computing device and being configured to use the virtual machine files copied to the shared storage of the second computing device, and disabling, by the second computing device, sharing of the shared storage with the first computing device.
 16. The method of claim 15, wherein the copying at least some of a running state of the virtual machine at the first computing device from a memory of the first computing device to a memory of the second computing device further comprises: establishing a connection from the first computing device to the second computing device; and copying the at least some of the running state of the virtual machine at the first computing device to the memory of the second computing device via the established connection.
 17. The method of claim 15, wherein the copying at least some of a running state of the virtual machine at the first computing device from a memory of the first computing device to a memory of the second computing device further comprises: copying the at least some of the running state of the virtual machine at the first computing device to at least one saved-state file in the shared storage at the second computing device.
 18. The method of claim 15, wherein the mirroring the disk write operations further comprises: performing the disk write operations to the file of the virtual machine at the first computing device; determining whether the disk write operations are to a portion of the file of the virtual machine that had already been migrated to the file in the shared storage at the destination computing device; and performing, only when the determining determines that the portion of the file of the virtual machine had not already been migrated to the file in the shared storage at the second computing device: performing the disk write operations to the file in the shared storage at the second computing device.
 19. The method of claim 15, wherein the request to migrate a virtual machine is initiated as a result of a client calling an application program interface of a virtualization platform executing on the first computing device.
 20. The method of claim 15, further comprising transferring ownership of the virtual machine from the first computing device to the second computing device after the virtual machine executing on the first computing device is stopped or paused. 